package com.li.service;

import com.li.model.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

public interface UserService {
    public int addUser(User user);
    public Optional<User> queryUserById(long id);
    public int updateUser(User user);
    public int deleteUser(long id);
    public Optional<User> login(String name,String password);
    public Optional<List<User>> queryAllUser();
    public Optional<User> queryUserByName(String name);
    //获取用户权限
    public String getUserPosition(long grade);

}
